<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="StyleSheet" href="../css/jpetstore.css" type="text/css" media="screen"/>

</head>
<body>
<header th:fragment="header">
    <div id="Header">
        <div id="Logo">
            <div id="LogoContent">
                <a href="/catalog/view"><img src="../images/logo-topbar.gif" /></a>
            </div>
        </div>

        <div id="Menu">
            <div id="MenuContent">
                <a href="/cart/viewCart"><img align="middle" name="img_cart" src="../images/cart.gif" /></a>

                <span th:if="${session.account} == null">
                    <img  align="middle" src="../images/separator.gif" />
                    <a href="/account/logIn">Sign In</a>
                </span>

                <span th:if="${session.account} != null">
                    <img align="middle" src="../images/separator.gif" />
                    <a href="/account/viewAccount">My Account</a>
                    <img align="middle" src="../images/separator.gif" />
                    <a href="/order/getOrder">My Orders</a>
                    <img align="middle" src="../images/separator.gif" />
                    <a href="/account/signOut">Sign Out</a>
<!--                    <img align="middle" src="../images/separator.gif" />-->
<!--                    <a href="service?action=viewLog">Log</a>-->
                </span>

                <img align="middle" src="../images/separator.gif" />
                <a href="/catalog/help">?</a>
            </div>
        </div>

        <div id="Search">
            <div id="SearchContent">
                <form action="/catalog/viewSearchProducts" method="post">
                    <input type="text" name="keyword" size="14" id="key" class="inputtable"/>
                    <input type="submit" name="searchProducts" value="Search" />
                </form>
            </div>
        </div>

        <!--此处为新添加自动补全显示部分-->

        <!--自动补全显示部分到此为止-->


        <div id="QuickLinks">
            <a href="/catalog/viewCategory?categoryId=FISH">
                <img src="../images/sm_fish.gif" />
            </a>
            <img src="../images/separator.gif" />
            <a href="/catalog/viewCategory?categoryId=DOGS">
                <img src="../images/sm_dogs.gif" />
            </a>
            <img src="../images/separator.gif" />
            <a href="/catalog/viewCategory?categoryId=REPTILES">
                <img src="../images/sm_reptiles.gif" />
            </a>
            <img src="../images/separator.gif" />
            <a href="/catalog/viewCategory?categoryId=CATS">
                <img src="../images/sm_cats.gif" />
            </a>
            <img src="../images/separator.gif" />
            <a href="/catalog/viewCategory?categoryId=BIRDS">
                <img src="../images/sm_birds.gif" />
            </a>
        </div>
    </div>
</header>

</body>
</html>